/* css 初始化代码  css reset */

* {
    /* 清除默认内外边距 */
    margin: 0;
    padding: 0;
    /* 內减模式 */
    box-sizing: border-box;
}
/* 去掉列表默认样式 */
li {
    list-style: none;
}
/* 去掉链接默认下划线 */
a {
    text-decoration: none;
}
/*去掉button 默认自带的边框*/
button {
	border: none;
}
/* 解决图片底层有空白缝隙的bug */
img {
    vertical-align: middle;
}
/* 清除浮动 */
.clearfix::before,
.clearfix::after {
    content: '';
    display: table;
}

.clearfix::after {
    clear: both;
}
body {
	background-color: #f3f5f7;
}
/* 学成在线的版心 */
.w {
    width: 1200px;
    margin: auto;
}
/* header头部模块 */
.header {
    height: 41px;
    /* background-color: pink; */
    /* margin: 30px auto; */
    margin-top: 30px;
    margin-bottom: 30px;
}
.logo {
    float: left;
}
.nav {
  float: left;  
  margin: 0 70px;
}
.nav ul li {
    float: left;
    margin-right: 15px;
}
.nav ul li a {
    /* a是什么元素？ */
    /* 行内元素能给上下的内边距吗 */
    display: block;
    padding: 8px 10px;
    font-size: 18px;
    color: #050505;
}
.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
}
/* search */
.search {
    float: left;
}
.search input {
    float: left;
    width: 361px;
    height: 41px;
    border: 1px solid #00a4ff;
    /* 取消表单轮廓线 */
    outline: none;
    font-size: 14px;
    padding-left: 20px;
}
/* 可以更改placeholder的文字颜色 */
.search input::placeholder {
    color: #bfbfbf;
}
.search button {
    float: left;
    width: 51px;
    height: 41px;
    background-color: #00a4ff;
}
.user {
    float: left;
    margin-left: 30px;
    padding-top: 5px;
}
.user img {
    /* 可以让图片和文字垂直居中 */
    vertical-align: middle;
    margin-right: 5px;
}
/* banner 部分 */
.banner {
    height: 420px;
    /* 上一级 ../ */
    background: #1c036c url(../images/banner.jpg) no-repeat top center;
}
.category {
    float: left;
    width: 190px;
    height: 420px;
    background: rgba(0,0,0,.8);
    padding-top: 8px;
}
.category ul li a {
    display: block;
    height: 44px;
    line-height: 44px;
    /* padding-left: 20px;
    padding-right: 20px; */
    padding: 0 20px;
    color: #fff;
    font-size: 14px;
}
/* 伪元素 */
.category ul li a::after {
    content: '>';
    float: right;
    /* margin-right: 20px; */ 
}
.category ul li a:hover {
    background: rgba(0,0,0,.6);
    color: #00a4ff;
}
.course {
    float: right;
    width: 228px;
    height: 300px;
    background-color: #fff;
    margin-top: 50px;
}
.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    color: #fff;
    font-size: 18px;
}
.course ul {
    margin-top: 8px;
    padding: 0 20px;
}
.course ul li {
    height: 60px;
    padding-top: 12px;
    border-bottom: 1px solid #ccc;
}
.course ul li h4 {
    font-weight: 400;
    color: #4e4e4e;
}
.course ul li p {
    font-size: 14px;
    color: #a5a5a5;
}

.all {
    display: block;
    /* width: 200px; */
    height: 41px;
    border: 1px solid #00a4ff;
    margin: 5px 14px;
    text-align: center;
    line-height: 41px;
    color: #00a4ff;
    font-weight: 700;
}
.all:hover {
    background-color:#00a4ff;
    color: #fff;
}
/* tag 标签模块 */
.tag {
    height: 60px;
    background-color: #fff;
    margin-top: 8px;
    line-height: 60px;
    /* 盒子阴影 */
    box-shadow: 2px 2px 2px rgba(0,0,0,.2);
}
.tag h3 {
    float: left;
    font-size: 16px;
    color:#00a4ff;
    margin: 0 30px;
}
.goods-item {
    float: left;
}
.goods-item a {
    color: #050505;
    font-size: 16px;
    border-left: 1px solid #ccc;
    padding: 0 30px;
}
.mod {
    float: right;
    margin-right: 26px;
    font-size: 14px;
    color: #00a4ff;
}

/*recommend 楼层 */
.floorhd {
    height: 40px;
    margin-top: 30px;
}
.floorhd h3 {
    float: left;
    font-size: 20px;
    color: #494949;
    font-weight: 400;
}
.floorhd .more {
    float: right;
    margin: 8px 25px 0 0;
    font-size: 12px;
    color: #a5a5a5;
}

.reco-inner li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}
/* 结构伪类选择器   5n 就是 5的倍数5 10 */
.reco-inner li:nth-child(5n) {
    margin-right: 0;
}
.reco-inner li h4 {
    color: #050505;
    font-size: 14px;
    font-weight: 400;
    margin: 25px 20px 12px;
}

.reco-inner li p {
    font-size: 12px;
    color: #999;
    margin-left: 20px;
}
.reco-inner li p span {
    color: #ff7c2d;
}
.floorhd ul {
    float: left;
    margin-left: 350px;
}
.floorhd ul li {
    float: left;
    margin-right: 70px;
}
.floorhd ul li a {
    color: #868686;
    font-size: 16px;
}
/* active 活动的 */

.floorhd ul li .active {
     color: #00a4ff;
}
.pro-inner {
    height: 392px;
    /* background-color: pink; */
}
.left {
    float: left;
    width: 228px;
    height: 392px;
    background-color: pink;
}
.right {
    float: right;
    width: 957px;
    height: 392px;
    /* background-color: purple; */
}
.right-top {
    margin-bottom: 22px;
}
.right-bottom li {
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
}
.right-bottom li:last-child {
    margin-right: 0;
}
.right-bottom li h3 {
    height: 50px;
    margin: 25px 20px 0;
    font-size: 14px;
    color: #050505;
    font-weight: 400;
}
.right-bottom li p {
    font-size: 12px;
    color: #a5a5a5;
    margin-left: 20px;
}
.right-bottom li p span {
    color: orange;
}

/* .footer 底部模块 */
.footer {
    height: 417px;
    background-color: #fff;
    margin-top: 20px;
    padding-top: 30px;
}
.footer-l {
    float: left;
    padding-left: 20px;
}
.footer-l p {
    font-size: 12px;
    color: #666;
    line-height: 18px;
    margin: 25px 0 15px;
}
.download {
    display:block;
    width: 120px;
    height: 36px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 36px;
    color: #00a4ff;
    font-weight: 700;
}

.footer-r {
    float: right;
}
.footer-r dl {
    float: left;
    width: 200px;
}
.footer-r dl dt {
    height: 30px;
    color: #333;
}
.footer-r dl dd {
    height: 22px;
}
.footer-r dl dd a {
    font-size: 12px;
    color: #333;
}
